﻿package me.zhengjie.common.exception

import com.fasterxml.jackson.annotation.JsonTypeName
import org.springframework.http.HttpStatus


/**
 * @author Kuki
 * @date 2024-11-10
 * 统一异常处理
 */
class BadRequestException : RuntimeException {
    var status = HttpStatus.BAD_REQUEST.value()

    constructor(msg: String?) : super(msg)
    constructor(status: HttpStatus, msg: String?) : super(msg) {
        this.status = status.value()
    }
}
